	<table>
		<thead>
			<tr>
				<th width="20"><?php echo form_checkbox(array('name' => 'action_to_all', 'class' => 'check-all')); ?></th>
				<th><?php echo lang('escort_news_title_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_news_site_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_news_slug_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_news_language_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_news_category_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_news_order_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_news_date_label'); ?></th>
				<th><?php echo lang('escort_news_status_label'); ?></th>
				<th width="180"></th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="7">
					<div class="inner"><?php $this->load->view('admin/partials/pagination'); ?></div>
				</td>
			</tr>
		</tfoot>
		<tbody>
			<?php foreach ($news as $post) : ?>
				<tr>
					<td><?php echo form_checkbox('action_to[]', $post->id); ?></td>
					<td><?php echo $post->title; ?></td>
					<td class="collapse">
					<?php
					if($post->site_ref == '0'){
						echo lang('global:select-all');
					}else{
						foreach ($sites as $key => $value){
							if($post->site_ref == $key){
								echo $value;
								break;
							}
						}
					}
					?>
					</td>
					<td><?php echo $post->slug; ?></td>
					<td class="collapse">
					<?php
					if($post->language_title == NULL){
						echo lang('global:select-all');
					}else{
						echo $post->language_title;
					}
					?>
					</td>
					<td class="collapse">
					<?php
					if($post->category_title == NULL){
						echo lang('global:select-all');
					}else{
						echo $post->category_title;
					}
					?>
					</td>
					<td class="collapse"><?php echo $post->order; ?></td>
					<td class="collapse"><?php echo format_date($post->created_time); ?></td>
					<td><?php echo lang('escort_news_'.$post->status.'_label'); ?></td>
					<td>
						<?php echo anchor('admin/news/edit/' . $post->id, lang('global:edit'), 'class="btn orange edit"'); ?>
						<?php echo anchor('admin/news/delete/' . $post->id, lang('global:delete'), array('class'=>'confirm btn red delete')); ?>
					</td>
				</tr>
			<?php endforeach; ?>
		</tbody>
	</table>

	<div class="table_action_buttons">
		<?php $this->load->view('admin/partials/buttons', array('buttons' => array('delete', 'active'))); ?>
	</div>